import request from '@/utils/request'
let lawServicePlatform = "lawServicePlatform";
// 注解
// lty
//fff
// 分页展示文章列表
export function getArticleList(data) {
    return request({
        url: "/lawServicePlatform/article/getArticleList",
        method: 'post',
        data
    })
}

// // 分页展示【已上架】文章列表
// // （传参：页码data）
// export function getPublishedArticleList(data) {
//     return request({
//         url: "/lawServicePlatform/article/getPublishedArticleList",
//         method: 'post',
//         data
//     })
// }

// 根据关键词模糊查询并分页展示
export function getArticleByTitle(data) {
    return request({
        url: "/lawServicePlatform/article/getArticleByTitle?title="+data.title,
        method: 'post',
        data
    })
}

// 根据文章id展示文章详情
export function getArticleById(id){
    return request({
        url:"/lawServicePlatform/article/getArticleById?id="+id,
        method:"post"
    })
}


//分页获取已上架的文章
export function getPublishedArticleList(data){
    return request({
      url:"/lawServicePlatform/article/getPublishedArticleList",
      method:"post",
      data
    })
}
  